/**
 * 
 */
package fr.synthese.stephaneM.BeanEnumeration;

/**
 * @author dev03
 * Nom du projet :
 * Date creation classe :17 sept. 2012
 * fr.synthese.stephaneM.BeanEnumeration
 */
public enum Langage {
	JAVA ("Langage JAVA", "Eclipse"),
	C ("Langage c","code Block"),
	CPlus ("Langage c++","Visual Studio"),
	PHP ("Langage PHP","PS Pad");
	
	private String name="";
	private String editor="";
	
	Langage (String name, String editor){
		this.name=name;
		this.editor=editor;
	} 
	
	public String toString(){
		return name;
	}
	
	public void getEditor(){
		System.out.println("Editeur :"+editor);
	}
	
	public  static void main(String args[]){
		Langage l1=Langage.JAVA;
		Langage l2=Langage.PHP;
		
		l1.getEditor();
		l2.getEditor();
		System.out.println(l1.toString());
	}

}
